from goodsApp.goodsModel.models import Goods


class GoodsService:
    def isExist(self,goodsId):
        goodsArray = Goods.objects.filter(id=goodsId)
        if len(goodsArray)==0:
            return False
        return True
    def getGoods(self,goodsId):
        return Goods.objects.get(id=goodsId)